{% extends "double.html" %}

{% block title %} collect {% endblock %}
{% block navpath %}
  <div class="page-header">
    <h1><small>详细条目</small></h1>
  </div>
{% endblock %}

{% block main %}
  <div class="col-xs-12">
      <div class="col-xs-12 col-sm-6 col-md-12">
        <p class="navbar-text navbar-right">

          <a href="{% url "contactmanager-add" category.id user.username %}" type="button" class="btn btn-info">收集</a>
          <a href="{% url "category-update" category.id %}" type="button" class="btn btn-success">修改</a>
          <a href="{% url "category-delete" category.id %}" type="button" class="btn btn-danger">删除</a>
        </p>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-12">
        <div class="well">
          <img src="http://static.bootcss.com/www/assets/img/codeguide.png" class="img-responsive img-thumbnail" alt="Responsive image">
          <div>
            <h4 class="text-muted bg-info">{{ category.name }}</h4>
            <p class="text-muted bg-info">{{ category.description }}</p>
            {{ category.contact_set.all.count}}
          </div>
        </div>
      </div>
    </div>
{% endblock %}

{% block aside %}
aside
{% endblock %}